import http from './index';

// 封装所有的与用户相关的请求
// 登录请求
export const loginApi = (username, password) =>
  http({
    url: '/b/users/login',
    method: 'POST',
    data: {
      username,
      password
    }
  })